const obj = {
  name: 'why',
  age: 18
}

const objProxy = new Proxy(obj, {
  get: function(target, key, receiver) {
    return Reflect.get(target, key)
  },
  set: function(target, key, newVal, receiver) {
    Reflect.set(target, key, newVal)
  }
})

objProxy.name = 'Jelly'
console.log(objProxy.name)
console.log(obj.name)